Function Reference

_ArrayMinIndex

Returns the index where the lowest value occurs in the array.

#include <Array.au3>
_ArrayMinIndex ( $avArray[[, $iCompNumeric], $i_Base] )

 

Parameters

$avArray The array to be scanned.
$iCompNumeric 0 = Alpha numeric compare
1 = Numeric compare
$i_Base Optional: Start Array index, normally 0 or 1. default = 0

 

Return Value

Success: Returns the index of the lowest value in the array.
Failure: Returns an empty string.
@Error: 0 = No error.
1 = $avArray isn't an array.

 

Remarks

None.

 

Related

_ArrayMax, _ArrayMaxIndex, _ArrayMin

 

Example


#include <Array.au3>
;
$avArray = StringSplit("4,2,06,8,12,5",",")
;
MsgBox(0,'Max Index String value',_ArrayMaxIndex( $avArray, 0, 1))
MsgBox(0,'Max Index Numeric value',_ArrayMaxIndex( $avArray, 1, 1))
;
MsgBox(0,'Max String value',_ArrayMax( $avArray, 0, 1))
MsgBox(0,'Max Numeric value',_ArrayMax( $avArray, 1, 1))
;
MsgBox(0,'Min Index String value',_ArrayMinIndex( $avArray , 0, 1))
MsgBox(0,'Min Index Numeric value',_ArrayMinIndex( $avArray, 1, 1))
;
MsgBox(0,'Min String value',_ArrayMin( $avArray, 0, 1))
MsgBox(0,'Min Numeric value',_ArrayMin( $avArray, 1, 0))

Exit